package cn.diancan.model.types;

public enum PfAndDevice {

    Android,
    iPhone,
    MobileWeb,
    PcWeb,
    noiPhone,/*审核时候用的一个值*/
    Unkown;
    
    
    public static PfAndDevice getPfAndDevice(String name){
	try {
	    if(null==name){
	        return PfAndDevice.Unkown;
	    }
	    PfAndDevice enums[] =PfAndDevice.values();
	    for (int i = 0; i < enums.length; i++) {
	        PfAndDevice singleEnum=  enums[i];
	        if(singleEnum.toString().equalsIgnoreCase(name)){
	    	return singleEnum;
	        }
	    } 
	} catch (Exception e) { 
	    e.printStackTrace();
	}
	return PfAndDevice.Unkown;
    }
     
    
}
